package cn.ava.ymcc.feign;

import cn.ava.ymcc.feign.fallback.CourseUserLearnFeignClientFallbackFactory;
import cn.ava.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseUserLearnFeignClientFallbackFactory.class)
public interface CourseUserLearnFeignClient {

    @RequestMapping(value = "/courseUserLearn/checkUser/{loginId}/{courseId}",method = RequestMethod.GET)
    JSONResult checkUser(@PathVariable(value = "loginId")Long loginId, @PathVariable(value = "courseId") Long courseId);


}
